﻿using DigitalHealth.PACS.Model;
using Microsoft.EntityFrameworkCore;
using System;


namespace DigitalHealth.PACS.ChatWebSocket.Context
{
    /// <summary>
    /// 聊天服务上线文
    /// </summary>
    public class ChatContext:DbContext
    {
        public ChatContext(DbContextOptions<ChatContext> options) : base(options)
        {
            
        }
        /// <summary>
        /// 用户集合
        /// </summary>
        public DbSet<ChatUser> Users { get; set; }

        /// <summary>
        /// 聊天消息集合
        /// </summary>
        public DbSet<ChatMessage> ChatMessages { get; set; }

        /// <summary>
        /// 群聊消息集合
        /// </summary>
        public DbSet<ChatGroupMessage> ChatGroupMessages { get; set; }

        /// <summary>
        /// 群组集合
        /// </summary>
        public DbSet<ChatGroup> ChatGroups { get; set; }
    }

   
}
